package com.woniu.movie;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
@EnableKnife4j                //开启 knife4j
@SpringBootApplication
@MapperScan("com.woniu.movie.mapper")
@ComponentScan(value = {
        "com.woniu.movie",
        "com.woniu.common"
})
@EnableCaching  // 启用缓存
@EnableFeignClients
public class MovieApplication {
    public static void main(String[] args) {
        SpringApplication.run(MovieApplication.class, args);
    }
}
